﻿<div style="color:Black;background-color:White;"><pre>
<span style="color:Blue;">Public</span> <span style="color:Blue;">Class</span> LinqTest
	<span style="color:Blue;">Public</span> <span style="color:Blue;">Sub</span> DoSomething()
	
		<span style="color:Blue;">Dim</span> test = <span style="color:Blue;">From</span> d <span style="color:Blue;">In</span> data
                   <span style="color:Blue;">Aggregate</span> d <span style="color:Blue;">In</span> data <span style="color:Blue;">Into</span> data2 = <span style="color:Blue;">All</span>(<span style="color:Blue;">True</span>), data3 = <span style="color:Blue;">Any</span>(<span style="color:Blue;">True</span>), _
                    data4 = <span style="color:Blue;">Average</span>(10), data5 = <span style="color:Blue;">Count</span>(<span style="color:Blue;">True</span>), data6 = <span style="color:Blue;">LongCount</span>(<span style="color:Blue;">True</span>), _
                    data7 = <span style="color:Blue;">Max</span>(10), data8 = <span style="color:Blue;">Min</span>(10), data9 = <span style="color:Blue;">Sum</span>(10)
				   <span style="color:Blue;">Join</span> d2 <span style="color:Blue;">In</span> data <span style="color:Blue;">On</span> d.Key <span style="color:Blue;">Equals</span> d2.Key
				   <span style="color:Blue;">Group</span> <span style="color:Blue;">Join</span> g <span style="color:Blue;">In</span> data <span style="color:Blue;">On</span> d.Key <span style="color:Blue;">Equals</span> g2.Key
				   <span style="color:Blue;">Group</span> <span style="color:Blue;">By</span> h = d.Key
				   <span style="color:Blue;">Skip</span> 10 <span style="color:Blue;">Take</span> 10
				   <span style="color:Blue;">Skip</span> <span style="color:Blue;">While</span> <span style="color:Blue;">True</span>
				   <span style="color:Blue;">Take</span> <span style="color:Blue;">While</span> <span style="color:Blue;">True</span>
				   <span style="color:Blue;">Order</span> <span style="color:Blue;">By</span> h.Key <span style="color:Blue;">Ascending</span>, h.Key <span style="color:Blue;">Descending</span>
				   <span style="color:Blue;">Let</span> w = g.Key
				   <span style="color:Blue;">Where</span> g.Key == <span style="color:#A31515;">&quot;abc&quot;</span>
				   <span style="color:Blue;">Select</span> g <span style="color:Blue;">Distinct</span>
	<span style="color:Blue;">End</span> <span style="color:Blue;">Sub</span>
<span style="color:Blue;">End</span> <span style="color:Blue;">Class</span>
</pre></div>